home *** CD-ROM | disk | FTP | other *** search
/ Aminet 23 / Aminet 23 (1998)(GTI - Schatztruhe)[!][Feb 1998].iso / Aminet / dev / misc / gms_dev.lha / GMSDev / Includes / input / joyports.i < prev    next >
Encoding:
Text File  |  1997-11-19  |  1.3 KB  |  61 lines

  1.     IFND INPUT_JOYPORTS_I
  2. INPUT_JOYPORTS_I  SET  1
  3.  
  4. **
  5. **  $VER: joyports.i V0.9B
  6. **
  7. **  JoyPort definitions.
  8. **
  9. **  (C) Copyright 1996-1997 DreamWorld Productions.
  10. **      All Rights Reserved.
  11. **
  12. **
  13.  
  14.     IFND    DPKERNEL_I
  15.     include 'dpkernel/dpkernel.i'
  16.     ENDC
  17.  
  18. ******************************************************************************
  19. * JoyData object.
  20.  
  21. JOYVERSION =    1
  22. TAGS_JOYDATA =    ((ID_SPCTAGS<<16)|ID_JOYDATA)
  23.  
  24.     STRUCTURE    JD,HEAD_SIZEOF
  25.     WORD    JD_Port         ;Port number, 1/2/3/4.
  26.     WORD    JD_XChange      ;Change in the x coordinate.
  27.     WORD    JD_YChange      ;Change in the y coordinate.
  28.     WORD    JD_ZChange      ;Change in the z coordinate.
  29.     LONG    JD_Buttons      ;Contains button bits, below.
  30.  
  31. ;Bit settings for buttons field.
  32.  
  33. JB_FIRE1 =    0               ;Standard Fire Button (1) - LMB.
  34. JB_FIRE2 =    1               ;Standard Fire Button (2) - RMB.
  35. JB_FIRE3 =    2               ;Standard Fire Button (3) - MMB.
  36. JB_FIRE4 =    3
  37. JB_FIRE5 =    4
  38. JB_FIRE6 =    5
  39. JB_FIRE7 =    6
  40. JB_FIRE8 =    7
  41. JB_LMB   =    JB_FIRE1
  42. JB_RMB   =    JB_FIRE2
  43. JB_MMB   =    JB_FIRE3
  44.  
  45. ;Flags for buttons field.
  46.  
  47. JF_FIRE1 =    (1<<JB_FIRE1)
  48. JF_FIRE2 =    (1<<JB_FIRE2)
  49. JF_FIRE3 =    (1<<JB_FIRE3)
  50. JF_FIRE4 =    (1<<JB_FIRE4)
  51. JF_FIRE5 =    (1<<JB_FIRE5)
  52. JF_FIRE6 =    (1<<JB_FIRE6)
  53. JF_FIRE7 =    (1<<JB_FIRE7)
  54. JF_FIRE8 =    (1<<JB_FIRE8)
  55. JF_LMB   =    JF_FIRE1
  56. JF_RMB   =    JF_FIRE2
  57. JF_MMB   =    JF_FIRE3
  58.  
  59.   ENDC ;INPUT_JOYPORTS_I
  60.  
  61.